/**

 @Name：layuiAdmin 用户登入和注册等
 @Author：贤心
 @Site：http://www.layui.com/admin/
 @License: LPPL
    
 */
 
layui.define('form', function(exports){
  var $ = layui.$
  ,layer = layui.layer
  ,laytpl = layui.laytpl
  ,setter = layui.setter
  ,admin = layui.admin
  ,router = layui.router()
  ,form = layui.form;
  admin.req({
      url: '/index/common/check_node?url='+router.href
      ,success: function (res) {
        //console.log(res);
        if (res.code=='1002') {
          layer.msg(res.msg, {icon: 2});
          //location.hash = '/tips/adminform_404';
        }
      }
    });
  //对外暴露的接口
  exports('auth', {});
});